package com.company;

import java.util.Arrays;

public class Main {

    public static void main(String[] args) {
	// write your code here
         char[] c={'h','e','l','l','o'};
        String s=new String(c);
        String s1="hello";
        System.out.println(s.charAt(3));
        System.out.println(s.concat("hello"));
        System.out.println(s.contains("sdas"));
        System.out.println(s.endsWith("o"));
        System.out.println(s.hashCode());
        System.out.println(s.length());
        System.out.println(s.indexOf('o'));
        System.out.println(s.lastIndexOf('o'));
        System.out.println(s.isEmpty());
        System.out.println(s.replace('e','9'));
        System.out.println(s.startsWith("h"));
        System.out.println(s.substring(1));
        System.out.println(s.substring(1,4));
        System.out.println(s.toLowerCase());
        System.out.println(s.toUpperCase());
        System.out.println(s.trim());//去除头尾空格
        char[] cs=s.toCharArray();
        System.out.println(cs);
        byte[] bs=s.getBytes();
        System.out.println(Arrays.toString(bs));
        s="a1b1c1d1d1q1e1r1";
        String [] ss=s.split("1");
        System.out.println(Arrays.toString(ss));
        String num=String.valueOf(10);
        System.out.println(num);


    }
}
